//
//  HLMenuView.h
//  YueYue
//
//  Created by hulu001 on 2023/6/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLMenuItem : QMUIButton
+ (HLMenuItem *)itemWithImage:(UIImage *)image title:(NSString *)title target:(id)target action:(SEL)action;
@end

@interface HLMenuView : UIView<UIGestureRecognizerDelegate>

@property (nonatomic, strong) NSArray *items;

@property (nonatomic, assign) CGSize itemSize;
@property (nonatomic, assign) UIEdgeInsets insets;
@property (nonatomic, assign) CGFloat horizontalSpacing;
@property (nonatomic, assign) CGFloat veritalSpacing;
@property (nonatomic, assign) CGFloat indiractorHeight;
@property (nonatomic, assign) CGFloat indiractorWidth;

- (void)showMenuFromView:(UIView *)view onView:(UIView * _Nullable)toView;

@end

NS_ASSUME_NONNULL_END
